import request from '@/utils/request'

// 登录接口
export const login = (data) => request.post('user/login', data)
// 轮播图
export const swiper = (data) => request.get('/home/swiper', data)
// 租房小组
export const groups = (data) => request.get('/home/groups', data)
// 上传房屋信息
export const rentinfo = (data) => request.post('/user/houses', data)
// 获取城市列表
export const city = () =>
  request.get('/area/city', {
    params: { level: 1 } // 表示一级城市
  })
